import * as url from './url'
import axios from './request'
import { getToken } from './login'

// export function getGoodsInfo (params) {
// 	return axios.get(url.GOODS_INFO, {params}).then(res => res.data)
// }



export function getItemsHot(token, page, is_group_buying = false){
	token = getToken()
	const params = { token, page, is_group_buying: +is_group_buying }
	return axios.get(url.ITEMS_HOT, params).then(res => res.data)
}
